{extend name="/fool" /}
{block name="css"}
<link rel="stylesheet" href="/css/admin/product_list.css">
<style>
    .layui-form-onswitch{
        /*background: #1989FA;*/
        /*border-color: #1989FA;*/
    }
    .layui-upload-img{
        height:200px;
        width:200px;
        margin: 10px;
    }
    .value{
        text-align: left;
    }
    .dt{
        width:200px;
        height:200px;
    }
</style>
{/block}
{block name="menu_content"}
<form class="layui-form" action="" method="post" enctype="multipart/form-data">
    <ul id="content">
        <li class="li">
            <table class="one">
                <tr>
                    <td class="one-one">设备类型：</td>
                    <td class="value">
                        <div class="layui-input-inline">
                            <input type="text" name="name" value="随身充电宝" autocomplete="off" class="layui-input" disabled>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="one-one">使用时长：</td>
                    <td class="value">
                        <div class="layui-input-inline">
                            <input type="text" name="name" value="{$list.sc}" autocomplete="off" class="layui-input" disabled>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="one-one">取用地点：</td>
                    <td class="value">
                        <div class="layui-input-inline">
                            <input type="text" name="name" value="{$list.battery.batteryba.name}" autocomplete="off" class="layui-input" disabled>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="one-one">取用时间：</td>
                    <td class="value">
                        <div class="layui-input-inline">
                            <input type="text" name="name" value="{:date('Y-m-d H:i:s',$list.create_time)}" autocomplete="off" class="layui-input" disabled>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="one-one">归还时间：</td>
                    <td class="value">
                        <div class="layui-input-inline">
                        	{if $list.status == 1}
                            <input type="text" name="name" value="租赁中" autocomplete="off" class="layui-input" disabled>
                            {else}
                            <input type="text" name="name" value="{:date('Y-m-d H:i:s',$list.update_time)}" autocomplete="off" class="layui-input" disabled>
                            {/if}
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="one-one">金额：</td>
                    <td class="value">
                        <div class="layui-input-inline">
                            <input type="text" name="name" value="{$list.money}" autocomplete="off" class="layui-input" disabled>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="one-one">订单编号：</td>
                    <td class="value">
                        <div class="layui-input-inline">
                            <input type="text" name="name" value="{$list.orderid}" autocomplete="off" class="layui-input" disabled>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="one-one">充电宝编号：</td>
                    <td class="value">
                        <div class="layui-input-inline">
                            <input type="text" name="name" value="{$list.battery.name}" autocomplete="off" class="layui-input" disabled>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="one-one">收费标准：</td>
                    <td class="value">
                        <div class="layui-input-inline">
                            <input type="text" name="name" value="{$list.money_title}" autocomplete="off" class="layui-input" disabled>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="one-one">
                        <button type="button" class="listbu layui-btn">返回</button>
                    </td>
                    <td class="value">
                    </td>
                </tr>
            </table>
        </li>
    </ul>
</form>
<!-- 配置文件 -->
<script type="text/javascript" src="/utf8-php/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="/utf8-php/ueditor.all.js"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
    var ue = UE.getEditor('container',{
        initialFrameHeight: 300,
        initialFrameWidth: 500
    });
</script>
<script>
    $(".dtqx").click(function(){
        var id = $(this).attr('sid');
        $(this).closest(".imgdtdiv").hide();
        $.post("{:url('atlas/delete')}",{id},function(date){console.log(date)},'json');
    })

    layui.use('form', function(){
        var form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function(data){
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });
    $(".listbu").click(function(){
        location.href = "{:url('index')}";
    })
</script>
{/block}